package com.pearl.order.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TD
 * @version 1.0
 * @date 2023/9/22
 */
@RequestMapping("/order")
@RestController
@RefreshScope
public class OrderController {

    @Value("${server.port}")
    String port;

    @GetMapping("/getPort")
    public String getPort() {
        return port;
    }

/*    @Value("${password.length}")
    Integer length;

    @GetMapping("/length")
    public Integer length() {
        return length;
    }


    @GetMapping("/getById")
    public String getById(@RequestParam  String orderId) {
        return orderId;
    }
*/
}
